package com.alibaba.org.mapper;

import com.alibaba.org.domain.Department;
import com.alibaba.org.query.DepartmentQuery;

import java.util.List;

/**
 * 部门mapper接口
 */
public interface DepartmentMapper {
    //查询所有
    List<Department> loadAll();
    //查询单个对象
    Department loadById(Long id);
    //添加对象
    void  save(Department department);
    //移除对象
    void remove(Long id);
    //修改对象
    void  update(Department department);
    //查询总数量
    Long queryCount(DepartmentQuery departmentQuery);
    //查询当前页数据
    List<Department> queryData(DepartmentQuery departmentQuery);

    /**
     * 批量删除
     * @param ids
     */
    void pathDelete(Long[] ids);
}
